Release 10.1A: OpenEdge Data Management:
DataServer for Microsoft SQL Server
Replacing FIND FIRST for performance
When coding 4GL applications for the DataServer,
FINDFIRSTstatements can often be replaced with other 4GL statements to greatly improve performance.OPEN QUERYs and dynamicFINDsare significantly more efficient. Likewise, usingFORFIRSTin place ofFINDFIRSTcan improve performance when retrieving a single record withNO-LOCK. For example, if your application uses the followingFINDFIRSTcode:
The code can be replaced with the following for significant performance gains:
In the case of the
FORFIRST, the record is available beyond the end of theFORFIRSTloop. Similar performance advantages can be gained when retrieving last record as well.
|
Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |